import { createApp } from "vue";

// 主入口文件
import App from "./App.vue";

import store from "./store";

// 路由与存储引入
import router from "./router";
// 权限路由限制 router.beforeEach router.afterEach
import '@/router/permission';

// js 文件
// PWA 模块
import "@/registerServiceWorker";

// 核心
import { useCore } from "@/core/index";
import initializer from './core/bootstrap';

const app = createApp(App)
  .use(store)
  .use(router);

// 启动模块
useCore(app);

// 挂在应用
app.mount("#app");

initializer()
